import logging
import logging.handlers
from logging.handlers import WatchedFileHandler
import os
import multiprocessing

bind = '127.0.0.1:7878'      #..ip....
backlog = 512                #....
chdir = '/var/www/vaues_prod'  #gunicorn...........
timeout = 30      #..
# worker_class = 'gevent' #..gevent........sync .......sync..

pidfile = "vaues.pid"
workers = multiprocessing.cpu_count() * 2 + 1    #...
# workers = 2   #...
threads = 2 #............
loglevel = 'info' #..................................

access_log_format = '%(t)s %(p)s %(h)s "%(r)s" %(s)s %(L)s %(b)s %(f)s" "%(a)s"'
accesslog = "/var/www/vaues_prod/log/gunicorn_access.log"      #......
errorlog = "/var/www/vaues_prod/log/gunicorn_error.log"        #......


